package belf.migrate.engine.ddl;

import belf.migrate.api.model.QualifiersModel;
import belf.migrate.api.table.schema.TablePath;
import belf.migrate.api.util.FieldCase;
import belf.migrate.api.util.JdbcUrlUtil;
import belf.migrate.api.util.QualifiedType;
import belf.migrate.plugin.dameng.DamengCatalog;
import belf.migrate.plugin.mysql.MySQLCatalog;
import belf.migrate.plugin.oracle.OracleCatalog;

public class OracleDDLConvertTestBase {
    protected static String SCHEMA = "OE";
    static JdbcUrlUtil.UrlInfo oraclelUrlInfo = new JdbcUrlUtil.UrlInfo(
            "jdbc:oracle:thin:@192.168.0.107:1521/pdb1",
            "jdbc:oracle:thin:@192.168.0.107:1521",
            "192.168.0.107",
            1521,
            SCHEMA,
            ""
    );
    protected static JdbcUrlUtil.UrlInfo dmOEUrlInfo = new JdbcUrlUtil.UrlInfo(
            "jdbc:dm://localhost:15236?schema=OE",
            "jdbc:dm://localhost:15236",
            "localhost",
            15236,
            SCHEMA,
            ""
    );

    protected QualifiersModel qualifiersModel = new QualifiersModel("\"", "\"", FieldCase.ORIGINAL, QualifiedType.DOT);
    protected TablePath tablePath = TablePath.of(SCHEMA, null,"film_text", qualifiersModel);

    protected static OracleCatalog sourceCatalog = new OracleCatalog("oe", "oepwd", oraclelUrlInfo, SCHEMA, false);

    protected static DamengCatalog sinkCatalog = new DamengCatalog("sysdba", "is-641421", dmOEUrlInfo, SCHEMA, true);

}
